Under some systems (notably, BSDI), there is no LC_MESSAGES category in
authorTimur I. Bakeyev <timur@src.gnome.org>
Wed, 20 Jan 1999 18:35:53 +0000 (18:35 +0000)
committerTimur I. Bakeyev <timur@src.gnome.org>
Wed, 20 Jan 1999 18:35:53 +0000 (18:35 +0000)
Under some systems (notably, BSDI), there is no LC_MESSAGES category in
locale.h. In this case it is good guess to relay on the value of LC_ALL
(in fact, LC_CTYPE will be more precise).

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtkrc.c

index 08a543ffc79875e6e224dfb0bd6bda5ec86c91ab..db79c3f89f7462d2b277df59ef598c8d6c35af1f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Wed Jan 20 21:07:45 1999  Timur Bakeyev <mc@bat.ru>
+
+       * gtk/gtkrc.c (gtk_rc_init): There are some systems, that lacks of
+       LC_MESSAGES in locale.h. As a last resort for such systems, set locale
+       according to LC_ALL.
+
 Wed Jan 20 13:06:51 1999  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtktext.[ch] (clear_[focus_]area): Instead of drawing
index 08a543ffc79875e6e224dfb0bd6bda5ec86c91ab..db79c3f89f7462d2b277df59ef598c8d6c35af1f 100644 (file)
@@ -1,3 +1,9 @@
+Wed Jan 20 21:07:45 1999  Timur Bakeyev <mc@bat.ru>
+
+       * gtk/gtkrc.c (gtk_rc_init): There are some systems, that lacks of
+       LC_MESSAGES in locale.h. As a last resort for such systems, set locale
+       according to LC_ALL.
+
 Wed Jan 20 13:06:51 1999  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtktext.[ch] (clear_[focus_]area): Instead of drawing
index 08a543ffc79875e6e224dfb0bd6bda5ec86c91ab..db79c3f89f7462d2b277df59ef598c8d6c35af1f 100644 (file)
@@ -1,3 +1,9 @@
+Wed Jan 20 21:07:45 1999  Timur Bakeyev <mc@bat.ru>
+
+       * gtk/gtkrc.c (gtk_rc_init): There are some systems, that lacks of
+       LC_MESSAGES in locale.h. As a last resort for such systems, set locale
+       according to LC_ALL.
+
 Wed Jan 20 13:06:51 1999  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtktext.[ch] (clear_[focus_]area): Instead of drawing
index 08a543ffc79875e6e224dfb0bd6bda5ec86c91ab..db79c3f89f7462d2b277df59ef598c8d6c35af1f 100644 (file)
@@ -1,3 +1,9 @@
+Wed Jan 20 21:07:45 1999  Timur Bakeyev <mc@bat.ru>
+
+       * gtk/gtkrc.c (gtk_rc_init): There are some systems, that lacks of
+       LC_MESSAGES in locale.h. As a last resort for such systems, set locale
+       according to LC_ALL.
+
 Wed Jan 20 13:06:51 1999  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtktext.[ch] (clear_[focus_]area): Instead of drawing
index 08a543ffc79875e6e224dfb0bd6bda5ec86c91ab..db79c3f89f7462d2b277df59ef598c8d6c35af1f 100644 (file)
@@ -1,3 +1,9 @@
+Wed Jan 20 21:07:45 1999  Timur Bakeyev <mc@bat.ru>
+
+       * gtk/gtkrc.c (gtk_rc_init): There are some systems, that lacks of
+       LC_MESSAGES in locale.h. As a last resort for such systems, set locale
+       according to LC_ALL.
+
 Wed Jan 20 13:06:51 1999  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtktext.[ch] (clear_[focus_]area): Instead of drawing
index 08a543ffc79875e6e224dfb0bd6bda5ec86c91ab..db79c3f89f7462d2b277df59ef598c8d6c35af1f 100644 (file)
@@ -1,3 +1,9 @@
+Wed Jan 20 21:07:45 1999  Timur Bakeyev <mc@bat.ru>
+
+       * gtk/gtkrc.c (gtk_rc_init): There are some systems, that lacks of
+       LC_MESSAGES in locale.h. As a last resort for such systems, set locale
+       according to LC_ALL.
+
 Wed Jan 20 13:06:51 1999  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtktext.[ch] (clear_[focus_]area): Instead of drawing
index 08a543ffc79875e6e224dfb0bd6bda5ec86c91ab..db79c3f89f7462d2b277df59ef598c8d6c35af1f 100644 (file)
@@ -1,3 +1,9 @@
+Wed Jan 20 21:07:45 1999  Timur Bakeyev <mc@bat.ru>
+
+       * gtk/gtkrc.c (gtk_rc_init): There are some systems, that lacks of
+       LC_MESSAGES in locale.h. As a last resort for such systems, set locale
+       according to LC_ALL.
+
 Wed Jan 20 13:06:51 1999  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtktext.[ch] (clear_[focus_]area): Instead of drawing
index 3dc13cc8125c217efcf8b16c38119e852b597bb3..965b04c8e30580d962f7ae21dc2251b0e86b8ca3 100644 (file)
@@ -380,7 +380,11 @@ gtk_rc_init (void)
   gchar *locale_suffixes[3];
   gint n_locale_suffixes = 0;
   gint i, j;
+#ifdef HAVE_LC_MESSAGES
   char *locale = setlocale (LC_MESSAGES, NULL);
+#else
+  char *locale = setlocale (LC_ALL, NULL);
+#endif
   guint length;
   char *p;